package org.jeecg.modules.demo3.peijian.controller;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.demo3.peijian.service.TMennuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author wjn
 * @version V1.0
 * @date 2021/4/29 9:24
 * @Copyright © 2021/4/29 深圳卓翼航空无人机有限公司
 */
@RestController
@RequestMapping("/fly/axhkTMenu")
public class TMenuController {

    @Autowired
    private TMennuService tMennuService;

    @GetMapping("getByTMenus")
    public Result<?> getByTMenus(String id){
        List<String> lists = tMennuService.getMenus(id);
        return Result.OK(lists);
    }
}
